package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.ConfirmCodeCheckTask.ConfirmCodeCheckRequest;
import com.smiier.skin.net.ConfirmCodeCheckTask.ConfirmCodeCheckResponse;
import com.smiier.skin.util.GlobalSettings;

/**
 * 校验验证码是否正确
 * 
 * @author 杨文华
 * 
 */
public class ConfirmCodeCheckTask extends
		NetTask<ConfirmCodeCheckRequest, ConfirmCodeCheckResponse> {

	public static class ConfirmCodeCheckRequest extends ORequest {

		public String mobile;
		public int ConfirmCodeType = GlobalSettings.CONFIRM_CODE_TYPE_REGISTER;
		public String appname = Constant.APP_NAME;
		public String ConfirmCode;
	}

	public static class ConfirmCodeCheckResponse extends OResponse {
		public int Res = GlobalSettings.IS_FALSE;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=ConfirmCode.Check";
		mRequestMethod = METHOD_GET;
	}
}
